//
//  ViewController.m
//  Button_链式
//
//  Created by zhengju on 2017/4/16.
//  Copyright © 2017年 zhengju. All rights reserved.
//

#import "ViewController.h"
#import "UIButton+ZJCategory.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    UIButton * btn = [UIButton new];//初始化对象
    btn.home_frame((CGRect){100, 200, 100, 40}).home_superView(self.view).home_backgroundColor([UIColor redColor]).home_text(@"点击").home_block(^(id sender){
    NSLog(@"点击了----->>>>按钮");
    });
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
